<?php

namespace App\Http\Service\frontend;

use App\Common\Utils\Common;
use App\Http\Models\About\About;

class AboutService
{

    public function index() {
        $aboutData = About::select(['name', 'images', 'content', 'created_at', 'updated_at'])->orderBy('id', 'desc')->first();
        if ($aboutData) {
            $aboutData->images = Common::getHost() . $aboutData->images;
        }
        return $aboutData??[];
    }

}
